package day013.homework.p4;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Student s = new Student();
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入：(姓名-年龄-身高)");
        String str = sc.nextLine();
        String[] strArr = str.split("-");
        s.setName(strArr[0]);
        s.setAge(Integer.parseInt(strArr[1]));
        s.setHeight(Double.parseDouble(strArr[2]));

        System.out.println(s);
    }
}
